<?php

use yii\helpers\Html;

$this->title = $name;

$this->context->layout = false; //不使用布局

?>
<div class="site-error">
    <h1><?= Html::encode($this->title) ?></h1>

    <div class="alert alert-danger">
        <?= nl2br(Html::encode($message)) ?>
    </div>
<div style="text-align: center;padding-top: 40px;font-size: 30px;">
    404
</div>
</div>